<template>
	<view class="recruit">
		<view style="height: 20px; background-color: #f4f8f9;">
		</view>
		
		<view class="box">
			<view class="content">
				
				<view v-for="item in work">
					<view class="partOne" @click="getMoreDetail(item.id)" >
						
						<view class="partOne_middle">
							<view class="image">
							<image class="borderImage" :src="'http://192.168.0.112:8080'+item.userimage"></image>
						</view>
							<view class="description">{{item.username}}</view>
							<!-- <view class="description3">湖北华为科技有限公司·HR</view> -->
							<view class="description2">16:01</view>
						</view>
						
					</view>
		
					<view style="height: 10px; background-color: #f4f8f9;">
					</view>
					
				</view>	
					<!-- <view class="partOne" @click="getMoreDetail()" >
						
						<view class="partOne_middle">
							<view class="image">
							<image class="borderImage"  src="../../../static/nansheng.png"></image>
						</view>
							<view class="description">吴先生</view>
							<view class="description2">16:01</view>
						</view>
						
					</view>
							
					<view style="height: 10px; background-color: #f4f8f9;">
					</view> -->
					
					<!-- <view class="partOne" @click="getMoreDetail()" >
						
						<view class="partOne_middle">
							<view class="image">
							<image class="borderImage"  src="../../../static/nvhai.png"></image>
						</view>
							<view class="description">陈小姐</view>
							<view class="description2">16:01</view>
						</view>
						
					</view> -->
							
					<!-- <view style="height: 10px; background-color: #f4f8f9;">
					</view> -->
					
			</view>
		</view>
		
		<view style="height: 600px; background-color: #f4f8f9;">
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello',
				work:'',
			}
		},
		onShow() {
			const id = getApp().globalData.globeUser.userid
			console.log(id)
			this.GetWorkList(id);
		},
		methods: {
			
			GetWorkList(id){
				uni.request({
					url:getApp().globalData.baseUrl+'/EmployeeTalk/'+id,
					method:'GET',
					success: (res) => {
						this.work = res.data.success
						console.log(this.work)
					}
				})
			},
			
			// getMoreDetail(id){
			// 	uni.navigateTo({
			// 		url:'/pages/page/workDescription/workDescription?id=' + id
			// 	})
			// }
			getMoreDetail:function(id){
						   
				   uni.navigateTo({
					url:'/pages/page/message/message?id='+id,
				   })
						   
			},

		}
	}
</script>

<style>
	.recruit {
		background-color: #fbfbfd;
	}
	
	.box {
		background-color: #f4f8f9;
		width: 100%;
	}
	
	.content {
		background-color: #ffffff;
		margin-left: 10px;
		margin-right: 10px;
		border-radius: 8px;
		box-shadow: 0px 0px 5px #ccc; 
	}
	
	.middle {
		height: 40px;
		width: 100%;
		position: relative;
		margin-bottom: 10px;
		background-color: #fbfbfd;
	}
	
	
	.content .partOne {
		height: 100px;
		position: relative;
		width: 100%;
		margin-bottom: 10px;
	}
	
	.content .partOne .container {
		position: absolute;
		height: 20px;
		left: 10px;
		top: 10px;
		right: 10px;
		width: 100%;
	}
	
	.partOne_middle .image {
		position: absolute;
		top: 0px;
		left: 0px;
	}
	
	.partOne_middle .description {
		position: absolute;
		top: 38px;
		left: 60px;
	}
	
	.partOne_middle .description3 {
		position: absolute;
		top: 40px;
		left: 120px;
		font-size: 14px;
		font-weight: 200;
	}
	
	.partOne_middle .description2 {
		position: absolute;
		top: 40px;
		right: 20px;
		font-weight: 200;
		font-size: 15px;
	}
	
	.borderImage{
		border-radius: 50%; 
		height: 45px; 
		width: 45px;
		position: absolute;
		left: 4px;
		top: 26px;
	}

	
	
</style>
